package com.lemote.service.order;

import java.util.List;

import com.lemote.core.Page;
import com.lemote.core.PropertyFilter;
import com.lemote.entity.CircuitBoard;
import com.lemote.entity.FlowTask;
import com.lemote.entity.User;
import com.lemote.service.BaseService;

/**
 * 
 * @author wuhui
 * @time 2011-7-19 下午09:00:02
 * @Version:0.0.1
 * @since smt
 */
public interface CircuitBoardService extends BaseService<CircuitBoard, Long> {

	/**
	 * 
	 * 根据角色查找当前角色任务
	 * 
	 * @param page
	 * @param filters
	 * @param list
	 * @return
	 */
	public Page<CircuitBoard> searchBoard(Page<CircuitBoard> page,
			List<PropertyFilter> filters, FlowTask flowTask);

	/**
	 * 自动检测订单测试结果
	 * 
	 * @return
	 */
	public Boolean autoBotTest(List<CircuitBoard> boards, User user);

	/**
	 * 自动检测订单测试结果
	 * 
	 * @return
	 */
	public Boolean autoTopTest(List<CircuitBoard> boards, User user);

	public List<CircuitBoard> getAllBoard(List<Long> roles);

	public List<CircuitBoard> getPackBoard(Long orderid, FlowTask task);

	/**
	 * 批量获取板子ID 描述
	 * 
	 * @param ids
	 * @return
	 */
	public List<CircuitBoard> getBoards( List<Long> ids);
	
}
